<template>
  <div class="app">
    <div v-if="$route.meta.keepAlive">
      <el-container>
        <el-header>
          <Header></Header>
        </el-header>
        <el-main>
          <router-view/>
          <Footer></Footer> 
        </el-main>
        <!-- <el-footer>
          <Footer></Footer> 
        </el-footer> -->
        <!-- <Footer></Footer> -->
    </el-container>
    </div>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
import Header from './components/header.vue';
import Footer from './components/footer.vue';
export default {
  components: { Header, Footer},
  };
</script>

<style lang="less" scoped>
// 使用less    lang="less"
@import url(~@/assets/style/base.css);
.el-header{
  height: 64px !important;
  padding: 0;
}
.el-main{
  padding: 0;
  background: #F7F8FA;
  height:calc(100vh - 64px)
}
</style>